
/**
 * @(#)NWMessageParam.java 2017年10月9日  下午7:38:52
 * <p>
 * Copyrights (C) 2017高德信息技术有限公司
 */
package com.wwy.monitor.model.param;

import java.io.InputStream;
import java.util.Map;

import org.springframework.web.multipart.MultipartFile;

/**
 * (类型功能说明描述)
 *
 * <p>
 * 修改历史:                                            <br>  
 * 修改日期         修改人员    版本          修改内容<br>  
 * -------------------------------------------------<br>  
 * 2017年10月9日 下午7:38:52   fulianqiu     1.0     初始化创建<br>
 * </p> 
 *
 * @author fulianqiu
 * @version 1.0
 * @since JDK1.7
 */
public class MailMessageParam {

    private String toMails;
    private String mailTitle;
    private String mailText;
    private String ccMails;

    private MultipartFile[] attachments;

    private Map<String, InputStream> attachmentsMap;

    /**
     * htmlText 默认为true
     */
    private boolean htmlText = true;

    /**
     * 用于校验权限
     */
    private String accessKey;
    private String accessSecret;

    public String getToMails() {
        return toMails;
    }

    public void setToMails(String toMails) {
        this.toMails = toMails;
    }

    public String getMailTitle() {
        return mailTitle;
    }

    public void setMailTitle(String mailTitle) {
        this.mailTitle = mailTitle;
    }

    public String getMailText() {
        return mailText;
    }

    public void setMailText(String mailText) {
        this.mailText = mailText;
    }

    public String getCcMails() {
        return ccMails;
    }

    public void setCcMails(String ccMails) {
        this.ccMails = ccMails;
    }

    public String getAccessKey() {
        return accessKey;
    }

    public void setAccessKey(String accessKey) {
        this.accessKey = accessKey;
    }

    public String getAccessSecret() {
        return accessSecret;
    }

    public void setAccessSecret(String accessSecret) {
        this.accessSecret = accessSecret;
    }

    public boolean getHtmlText() {
        return htmlText;
    }

    public void setHtmlText(boolean htmlText) {
        this.htmlText = htmlText;
    }

    public MultipartFile[] getAttachments() {
        return attachments;
    }

    public void setAttachments(MultipartFile[] attachments) {
        this.attachments = attachments;
    }

    public Map<String, InputStream> getAttachmentsMap() {
        return attachmentsMap;
    }

    public void setAttachmentsMap(Map<String, InputStream> attachmentsMap) {
        this.attachmentsMap = attachmentsMap;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("MailMessageParam [toMails=").append(toMails).append(", mailTitle=").append(mailTitle)
                .append(", mailText=").append(mailText).append(", ccMails=").append(ccMails).append(", htmlText=")
                .append(htmlText).append("]");
        return builder.toString();
    }

}